<?php if(!defined('BASEDIR')) exit('No direct script access allowed');

class CC_Core {

	protected $VERSION = '1.1';
	public static $instance;
	public $data = array();
	
	public static function &get_instance(){
		if(self::$instance == null){
			self::$instance = new self;
		}
		return self::$instance;
	}

	public function load_class($class, $name = null){
		global $class_library;
		
		$name = (empty($name)) ? $class : $name ;
		$file = $class_library . '/' . $class . '.php';
		
		if(file_exists($file)){
			include $file;
			$this->$name = new $class;
		}
	}
	
}


?>